package org.observer.jdk;

public class Client {

	public static void main(String[] args) {
		ConcreteObserver1 concreteObserver1 = new ConcreteObserver1();
		ConcreteObserver2 concreteObserver2 = new ConcreteObserver2();

		ConcreteSubject1 subject = new ConcreteSubject1();
		subject.addObserver(concreteObserver1);
		subject.addObserver(concreteObserver2);

		subject.firstMethod();
		subject.secondMethod();
	}

}
